<?php
//Get the menu from the database
class MgMenuComponent extends Object {
	function fetchData(&$controller){
		//Dynamically Loading the model of the menu, because it's not necessary to have it on every controller.
		App::import('Model', 'MgMenu');
		$this->MgMenu = new MgMenu();
		return $this->MgMenu->find('all');
	}
}
?>